﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Collections.ObjectModel;
using WindowsPhoneDataBoundApplication1.ViewModels;
using Microsoft.Xna.Framework.Media;
using System.Windows.Media.Imaging;

namespace WindowsPhoneDataBoundApplication1.Views
{
    public partial class Album : PhoneApplicationPage
    {
        public Album()
        {
            InitializeComponent();
        }
        
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            string index;
            if (NavigationContext.QueryString.TryGetValue("Id", out index))
            {
                DataContext = App.ViewModel.Items[int.Parse(index)];
            }
        }

        private void ImageList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }
    }
}